package Bank;
import java.sql.*;
import java.util.Scanner;

public class Jdbc {
	
	public static void main(String [] args){
	
	String user="system";
	String password="123456";
	String host="localhost";
	String port="1521";
	String SID="XE";
	
	String url="jdbc:oracle:thin:@"+host+":"+port+":"+SID;
	Connection con;
	
	try {
	        Class.forName("oracle.jdbc.OracleDriver");
		
		    con=DriverManager.getConnection(url,user,password);
			
			Statement stmt=con.createStatement();

			con.close();
       	} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (SQLException e) {
		    e.printStackTrace();
	    }
	}
}
